package com.mt.fpb.mapper;


import com.mt.fpb.common.config.MyMapper;
import com.mt.fpb.model.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends MyMapper<User> {
    /**
     * 根据用户名称查询用户密码
     * @param user
     * @return
     */
    User getUserByUserName(User user);

    /**
     * 修改密码
     * @param newPassword
     * @param userId
     * @return
     */
    int updatePassword(String newPassword, Integer userId);

    User getUserByNameAndPassword(User user);
}